<template>
  <div class="app-container">
    <div class="page-filter mb10 fl">
      <el-row>
        <el-col :span="24">
          <el-tabs v-model="active" type="card" @tab-click="handleTabs">
            <!-- <el-tab-pane label="首页汇总" name="1" /> -->
            <el-tab-pane label="应收汇总" name="2" />
            <el-tab-pane label="应付汇总" name="3" />
            <el-tab-pane label="资金日报表" name="4" />
            <el-tab-pane label="ERP未付款" name="5" />
            <el-tab-pane label="报销汇总" name="6" />
            <el-tab-pane label="销项发票" name="7" />
            <el-tab-pane label="进项发票" name="8" />
          </el-tabs>
        </el-col>
        <el-col v-if="active === '1'" :span="24">
          <Summary :info="info" />
        </el-col>
        <el-col v-if="active === '2'" :span="24">
          <Receivables :info="info" />
        </el-col>
        <el-col v-if="active === '3'" :span="24">
          <Payables :info="info" />
        </el-col>
        <el-col v-if="active === '4'" :span="24">
          <FundDay :info="info" />
        </el-col>
        <el-col v-if="active === '5'" :span="24">
          <Unpaid :info="info" />
        </el-col>
        <el-col v-if="active === '6'" :span="24">
          <Reimbursements :info="info" />
        </el-col>
        <el-col v-if="active === '7'" :span="24">
          <OutputInvoice :info="info" />
        </el-col>
        <el-col v-if="active === '8'" :span="24">
          <InputInvoice :info="info" />
        </el-col>
      </el-row>
    </div>
  </div>
</template>

<script>
import FundDay from './components/finance/fund-day'
import InputInvoice from './components/finance/input-invoice'
import OutputInvoice from './components/finance/output-invoice'
import Payables from './components/finance/payables'
import Receivables from './components/finance/receivables'
import Reimbursements from './components/finance/reimbursements'
import Summary from './components/finance/summary'
import Unpaid from './components/finance/unpaid'

export default {
  name: '',
  components: { FundDay, InputInvoice, OutputInvoice, Payables, Receivables, Reimbursements, Summary, Unpaid },
  inject: ['app'],
  data() {
    return {
      active: '2',
      info: {}
    }
  },
  created() {
  },
  methods: {
    handleTabs(e) {
    }
  }
}
</script>
